package vn.vietel.pms.entity;

import static org.jboss.seam.ScopeType.EVENT;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.NotNull;
import org.hibernate.validator.Length;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Entity
@Name("vtypeofproperty")
@Scope(EVENT)
@Table(name = "VTypeOfProperty")
public class VTypeOfProperty implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;
	private String typeName;
	private String typeDesc;

	public VTypeOfProperty() {
	}

	public VTypeOfProperty(String typeName, String typeDesc) {
		super();
		this.typeName = typeName;
		this.typeDesc = typeDesc;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "typeId")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@NotNull
	@Length(max = 255)
	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getTypeDesc() {
		return typeDesc;
	}

	public void setTypeDesc(String typeDesc) {
		this.typeDesc = typeDesc;
	}

}
